#include	"lp_global_vars.h"

//-------------------------------------------------------------
int get_substr(int start_index, int end_index, char * source, char * result_to_return) {
	int i = 0, j = 0;
	memset(result_to_return, '\0', STRING_SIZE);

	for (i = start_index; i < end_index; i++) {
		if (source[i] == SPACE)
			break;
		result_to_return[j] = source[i];
		j++;
	}
	return i;
}
//-------------------------------------------------------------

